﻿using System.Web.Http;
using System.Web.Mvc;

namespace MMS.UI.Areas.Admin
{
    public class AdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_default",
                "Admin/{controller}/{action}/{id}",
                new { action = "Login", controller = "User", id = UrlParameter.Optional }
            );
            context.MapRoute(
             name: "Admin_default1",
             url: "admin/{controller}/{action}/{SMinMoney}/{SMaxMoney}/{SBeginTime}/{SEndTime}/{SPlace}",
             defaults: new { SMinMoney = RouteParameter.Optional, SMaxMoney = RouteParameter.Optional, SBeginTime = RouteParameter.Optional, SEndTime = RouteParameter.Optional, SPlace = RouteParameter.Optional }
           );
        }
    }
}
